#!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Project: spd-sxmcc
"""
@author: lyndon
@time Created on 2018/11/8 14:54
@desc
"""

class TypeMappingError(BaseException):
    def __init__(self, ErrorInfo):
        # super().__init__(self)  # 初始化父类
        self.message = ErrorInfo

    def __str__(self):
        return self.message


class TableNotExistsError(BaseException):
    def __init__(self, ErrorInfo):
        # super().__init__(self)  # 初始化父类
        self.message = ErrorInfo

    def __str__(self):
        return self.message


class SystemUnknownError(BaseException):
    def __init__(self, ErrorInfo):
        # super().__init__(self)  # 初始化父类
        self.message = ErrorInfo

    def __str__(self):
        return self.message

if __name__ == '__main__':
    try:
        raise TypeMappingError('客户异常')
    except TypeMappingError as e:
        print(e.message)

